//
//  FPButtonViewCell.m
//  ForestPack
//
//  Created by 骆锴 on 2018/7/24.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "FPButtonViewCell.h"
#import "FPBottomButtonView.h"
#import "OrderDetialViewController.h"

@implementation FPButtonViewCell

+ (FPButtonViewCell *)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellID = @"FPButtonCell";
    FPButtonViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[FPButtonViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
        cell.backgroundColor = [UIColor whiteColor];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        [cell createSubView];
    }
    return cell;
}

-(void)createSubView{
    _footer = [FPBottomButtonView initBottomButtonViewWithTitle:@"立即购买"];
    _footer.frame = CGRectMake(0,0, SCREEN_WIDTH, 50);
    [self addSubview:_footer];
}

@end
